sCC      = g++

CFLAGS   = -O3 -Wall -fkeep-inline-functions -D LINUX_PI  

INCPATH  = -I /usr/local/include

LIBS     = -L /usr/local/lib -lavcodec -lavformat -lavutil -lswscale -pthread -lrt -shared

OBJECTS_DIR = ./
TARGET=libDecoder.so
all:
	$(CC) $(INCPATH) $(CFLAGS) -c -fsigned-char Decoder.cpp Interface.cpp senddata.cpp 
	$(CC) -o libDecoder.so Decoder.o Interface.o senddata.o $(LIBS) 
	rm -rf *.o
	cp libDecoder.so ../bin
	cp libDecoder.so ../lib
	cp HY_Decoder.h ../bin
clean:
	rm -rf libDecoder.so *.o 
